package com.qf.service.impl;

import com.qf.dao.GoodsDao;
import com.qf.dao.impl.GoodsDaoImpl;
import com.qf.pojo.Goods;
import com.qf.service.GoodsService;

import java.util.List;

/**
 * @author mkr
 * @version V1.0
 * @Project java2203-mkr
 * @Package com.qf.service.impl
 * @Description:
 * @Date 2022/5/24 16:33
 */
public class GoodsServiceImpl implements GoodsService {

    GoodsDao goodsDao = new GoodsDaoImpl();

    @Override
    public void addGoods(Goods goods) {
        goodsDao.insertGoods(goods);
    }

    @Override
    public List<Goods> findGoodsAll() {
        List<Goods> list = goodsDao.findGoodsAll();
        return list;
    }

    @Override
    public Goods findGoodsBuId(Integer id) {
        Goods goods = goodsDao.findById(id);
        return null;
    }
}
